import { ActionDesc, PagesKey } from '@/global/constant'
import { IContentConfig, TableItemType } from '@/components/page-content/type'

const convertListContent: IContentConfig = {
  pageKey: PagesKey.IntegralConvert,
  tableConfig: {
    // bordered: true
    size: 'small',
    scroll: {
      // x: 1980
    },
    rowKey: 'convertId'
  },
  isShowRowSelection: false,
  isShowMoreAction: true,
  moreActions: [{ key: ActionDesc.Delete, label: '删除' }],
  isShowAddBtn: false,
  isShowBatchBtn: false,
  tableItems: [
    {
      type: TableItemType.Column,
      title: '商品名',
      dataIndex: 'shopName'
    },
    {
      type: TableItemType.Column,
      title: '所需积分',
      dataIndex: 'shopIntegral'
    },
    {
      type: TableItemType.Column,
      title: '兑换数量',
      dataIndex: 'convertNum'
    },
    {
      type: TableItemType.Column,
      title: '用户名',
      dataIndex: 'userName'
    },
    {
      type: TableItemType.Column,
      title: '创建时间',
      dataIndex: 'createTime',
      width: 160
    }
  ]
}

export default convertListContent
